#ifndef RLSQL_H
#define RLSQL_H

#include "tracksql.h"

#define ROULETTE_GAMEID_SIZE		16
typedef char RouletteGameID[ROULETTE_GAMEID_SIZE];

class RouletteRound;
class RouletteBet;

//
// All money values are in cents (100 == $1, 25 == $.25, 1 == $.01)
//
// IMPORTANT:  Access to this class is NOT thread-safe.  That's handled at
//			   the next level up (with calls to lock()/unlock()).
//

class RouletteSQL : public TrackSQL
{
	public:
		RouletteSQL(const String& DBDSN, const String& DBLogin, const String& DBPassword);

		int32 spin(int32 casinoId,
			PID, uint8 tableID, bool8 forMoney, SESSIONID, int32 compFactor,
			uint8 spinresult, int32 payout, RouletteRound *round,
			int32* balance, int32* comp);

		int32 getPlayerLimits(PID, uint8 tableId,
			int32* mininside, int32* maxinside,
			int32* minoutside, int32* maxoutside, 
			int32* maxsingleinside, int32* compFactor);
};

#endif
